﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;

namespace Tweets.Library
{
    /// <summary>
    /// Represents images in tweets.
    /// </summary>
    public class TwitterMedia
    {
        /// <summary>
        /// Media Id.
        /// </summary>
        [JsonProperty(PropertyName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// Full URL with image file extension (i.e. jpg, .png, etc.).
        /// </summary>
        [JsonProperty(PropertyName = "media_url")]
        public string MediaUrl { get; set; }

        /// <summary>
        /// Shortened URL.
        /// </summary>
        [JsonProperty(PropertyName = "url")]
        public string Url { get; set; }

        /// <summary>
        /// Shortened URL. Differs from Url.
        /// </summary>
        [JsonProperty(PropertyName = "display_url")]
        public string DisplayUrl { get; set; }

        /// <summary>
        /// Same as DisplayUrl but without the "http://"
        /// </summary>
        [JsonProperty(PropertyName = "expanded_url")]
        public string ExpandedUrl { get; set; }

        /// <summary>
        /// Currently only 'photo'.
        /// </summary>
        [JsonProperty(PropertyName = "type")]
        public string Type { get; set; }
    }
}
